Implemented saving of relations to .csv files (though commas etc. are not escaped yet)