Adding error checking to other version info routines
Initialising uninitialised variable
Minor miscellaneous changes