fix issue #1 by implementing logging mechanisms, added stderr and null mechanisms, minor stuff