Commentary and refactored to files.
Added author and source links.