reorganize program and begin work on 3d plotting (via Java)