Fixing a bunch of errors and getting reporting to work through Sockets.IO