More code comments. Cleaned up JS.