First pass at writing a prop-writer, currently writes a file for each embeded structure