replace custom commandline parsing with thor.
write to stdout.
bump version.