Updating all files to adhere to the JSHint settings and fixing lots of documentation errors on the way.