added a figure and minor changes
added some changes requested by felix
finsihed adding Felixs improvements
last minute cahnges