More minor improvements to optimising styles
Functions to parse and write paths