Cleaned up and commented codebase.
Removed unneeded script tags from index.html.