add file io for IMG format

IMG being QSTEM's old native binary format
Add preliminary support for reading CFG files

CFG being QSTEM's old standard file format for structure input.