- sort.js was heavily commented. NaturalDocs are now used to generate documentation
   on the fly from source code comments. Documentation was added.
 - some unnecessary functions and comments were removed from the code