added in a some checks when creating a relationship (checks if the inverse relation type is null first) , got rid of some TODOs