A few input record fixes.
Removing a few util.h functions which have been superseeded by C++ alternatives (from std).