WiP: making some non-critical methods protected
Fixed variable name, added todo
Remove ANSI escape sequences that are sometimes added by XDebug