Cleaning up documentation and code file by file.  Closes #27

Added JSDoc style documentation comments. Closes #28