Refactor: move logic out of main()
Prefer writing to Stderr over log.Fatal