Fixed bugs and added a demo
Version 0.1