Cleaning code.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Adding checkPassword() method. Fixes #122.

Signed-off-by: Ben Corlett <bencorlett@me.com>