added comments to all prototype methods