Cleaned up some code
Added help for config file if it is badly formatted