initial commit of corrected splot code