A chatango library coded in c++ ported from chlib