Improved error and exception handling
Removed some cruft from index.html