Streamlining

Made parts of the code more reusable (changed into functions), started
getting things set up to parse config files for projects