Generalizing config and adding projectname variable