Bug Fixes

Works well -- format equation function needs work
Conflicts:
	index.php
	main_functions.php