Brought everything to cpp style io, and overhaul on convertor