Add initial support for config file

Remove a bunch of debugging stuff