Minor API changes and fixing a bug

This is basically to note what parameters are passed. 'Pa' is for 'password' and is to differentiate it from 'P' which is for PromptBehavior. I will add some comment.