Fixed a positioning bug and added comments to the example.