fix code style
improve README.md
use parser.error to die with illegal arguments