added file reader and conversion of CG strings to map