Doc/reset password

passwordReset: refactoring
passwordReset: add javadoc