Add general configuration functionality #194

see #194 
validation is not included yet