Added comments

Added comments to helper methods.