Fix some warnings (missing returns/uninitialized vars etc. )
Reduce newTB strangeness

It was passing std::string pointers as void's and converted them back to
std::strings

consted a few obvious functions.