did some refactoring and documentation for the password mongoose plugin