removed some clutter, added logging wrapper, added license stuff