Added comments for the file and each method

This is good because it is important to have comments to describe what the module and methods are all doing
added code for each of the methods

the code is needed for each method to do something