Add helper function to write macro files.
Full refactoring of the 'fluoview' module, using the recently created classes.