Alterations to kludgy config file reader subroutine