it's not working here, but it's an idea to explore
it's working now
cleaned up code with singular names for pathvisio 'classes'
reorganized code