changed logging to use toString
added license