Error handling, ignore hidden files, ran goimports

Hi. Here's some miscellaneous cleanups.