Updated the comments and added example usage.