small changes in ba, threw out unused code in plotter