Argument parsing fix

* fixed argument parsing so that shorthands work `-p`.
* log path can now be configured.