Added logging

Also updated gitignore.
Merge pull request #1 from dschoenberg/master

Minor updates.