Add basic logging. Fix #18