Added function comments

Added function comments describing what each function does to increase readability.
Changed function comments to conform to PEP257

Moved comments under function header.
Merge pull request #1 from ajgajg1134/master

Added function comments