Updated brain.py to be a tad more aggressive, and added a cleanup function for the brainmap to cleanup.py