fixed some logging and printing stuff, closes #22