Cleaning up

Using argparser and logger.
Cleaned a bit up the workflow.