Moved all function implementations to tutils.h
Renamed 'convertTo' function to 'convert'.