Change command line parsing to use nomnom, also added --version option.