Reading Config Files

Changed to read config files and added needed utility routines.