added more comments
added helper function NewConfig