Added logging to file

Hi Mike,

Please review this pull request. It's a single commit adding logging (also) to file and moving the credentials file to a dot file, both in the running user's home directory.

Thanks,
Alex