minor fixes to cleanup code

- added missing functions on some interfaces
- added and fixed some @var/@return/@param annotations
- moved setRepositories to RootPackage/RootPackageInterface

This is only the the minor code cleanup fixes part of the changes of PR #2597

@stof FYI