Assignment almost done

Passing the world and clearing the world are now working (i.e. front-end
updates accordingly).  TODO clean up the code and add licence stuffs.