Reviewed with tvh and improved code style. Refactored passwords. Attempted to implement listing all domains.