Generaloption with configfile support

This introduces configfile support in generaloption