Bugfix: Intermediate format should be 'OUT', fixed import.
Clean up of imports.
Added some doc-strings to the helper classes.