updated some function names, added a figure
updated output