Fixed a couple of bugs, better PAM integration
Merge pull request #6 from lucianpls/master

Fixed a couple of bugs, better PAM integration