MODIFIED: updated the onclick method for send

Changed the onclick method to be attached in the xml to allow for a cleaner class.
ADDED: documentation for new classes and methods

Added the documentation for the new classes and methods. Also, added the license to the top of the new class. Finally, some of the methods documentation needed to be update.