added descriptions for functions

Added error checking on brain load