Refactoring and documentation improvements

Project should default to have parentId == ROOT_ENTITY, which will mean we don't need these lines