Lots of tidying up to relation_util code. (Most commments but a little refactoring of repeated code chunks.) Added 'IMPORT' to the Gedit syntax definition. Added error_reporters in place of some console output.