Refactored output into defaultview class.

This will make it easier going forward to move into a gui.