Added new login class for client cleanup.

Began adding documentation.