Post processing, fancy export functions

The export functions still need a lot of work...