Add general configuration functionality

see #194 
validation is not included yet