Implement extended debugging output and renew documentation