Config file parser mostly works; pretty hacky