added gitignore
added error logging to console
fixes #5
cleanup