Added comments to functioning methods