still working on argument parsing flavored with py3
improved logging, fixed some typos