Closes #13 and logging level bugfix