rewrote large sections of TWIRC to use std::string instead. Still some bugs left, that will be taken care of later.