Reordered the functions, editor now reacts to changes made by setCurve() and clearShape(), removed the API (merged into the website), and simplified the instructions.