commented the code

gave every function a description and info on it.  commented most of the
important information.