Add basic logging (close #20)