added support for arbitrary relation plots
added, renamed and cleand up system relation functions