added first draft of plotCdf function
updated plotCDF