added config file setup and parsing.

Fixes #28.