Split a function in two and added comments to the custom exceptions.
Added many file manipulation methods and improved mod installing.