Fixing some password usage and adding documentation.