Fixed more bugs in the visualization related io tools. Had to change everything to boost::shared_ptr
Both codes now seem to be working and usable.
Added a script so that multiple things are done together.