Move logging code from main.go to logging.go
Change "Ok" string to "OK" (proper English)
Move flag parsing to separate function
Merge pull request #12 from Jimdo/refactor

Refactor some things in main.go