Added comments before some of the methods.