replace optimist with yargs. Closes #85