Added a ploting function using matplotlib.pyplot. Also fixed some typos