Cleaning up source code, adding better code documentation, and other misc.
Cleaning up source code, adding better code documentation