added new config functions and commenting