added spec
added logger, added tests