added logger class
added setter for out
little cleanup