moved lib/ directory outside demo/