Make sure y-axis is set dynamicly
Document main algorithm
Document each function