Fixed a glitch with the demo. Added some comments. Added a bind util function.