subject: Move export functionality to it's own file. Tidy up a lot of code. Add some extra documentation and functionality for pywind app. Catch more common errors and improve conversions. Update some tests. Progress :-)