Fixed method order.
Updated debug UI to new API.
Replaced PCRE with std::regex.