added debug_mode() method
added documentation
removed space in documention
fixed docstring of the method, added doctsring for test
Merge pull request #138 from plone/issue_125

added debug_mode() method