config: added file read error handling
config: improved documentation