Check if config file is readable
More error handling

This commit basically contains some more sophisticated error handling and plausibility checks.