15 adding logging

Fixed #15.