Comment and cleanup

Added documentation information to the form methods. Cleaned up unneeded
methods and variables.