Add missing documentation
Add debug print mechanism