Added more comments to the index page
Added more comments to the index page
added error checking and error returning to index page