Logging added

Simple implementation of logging.