Renamed 'in' => 'to' and 'out' => 'from'

Fixed mismatch in consistency for getRelationships.
to/from are used everywhere else and it is now in line with documentation.