made exit codes explicit
added go generate example
added support for -f filename flag