Fixes broken removeRelation(); adds documentation