major plotting refactors; including 3d plot functionality