Debug function commented better.
Documentation update.