Added documentation, updated plot functions
fixed to plot all points instead of only last