redefined association/relationship names according to their correct
definitions. fixed some bugs up and cleaned up visualiser.