Misc Bug Fixes, Code Cleanup

Fixed bugs with getting timestamps multiple times in a row, cleaned up
all extraneous console.log and alert statements in the code, added new
alert statements if something went wrong