config reading

basic reading of a config. not pretty, but works trumps pretty at the beginning.