Edited AddProjectReg to support type definition. Add a project reg entry for folders.