Code cleanup and changed datatype

Added Javadocs and comments. Cleaned up code. Also made two slight
changes to data types that were giving errors. Login information runs as
it should for M5.