Made some additions to the Brain class and added a Utils file for extraneous utility functions.