added flag param type
got rid of goopt and wrote my own command-line parser
ran gofmt