Demo file added.

Wierd bugs fixed.