Added all basic SVG export functions and save functionality. Created generateFunction to separate functionality.
Changed the approach to assigning color to functions.