Code cleanup
Inline docs
Cleaning up JS