Minor changes to comments and exception handling.

Also the mod now generates a README in the base directory of the mod folder.