added a headerfile for configuration, moved code from c file
added header file