Added documentation
Refactored code of getContainedXYZ() methods