Separated UI code into its own module
Added useful comments to modules and variables
Merged conflicts

Conflicts:
	src/index.html