initial commit
added docs
changed debug output