Fixed small error in config path. Also various small fixes.