Added a few comments to the methods