Updated README.md, moved documentation part and fixed an error in an example. Updated documentation with password type