Moved config parsing to its own file, added host option, removed mode options