X3D format output
minor edit
POlish X3D code.
Merge branch 'master' into x3d
SOme X3D code polishing.
Add some X3D unit tests and tidy some IO code.
Merge branch 'garth/x3d'