Added some comments to brain.c to accomodate understanding and help my future self.