added a few files to improve the demo. also fixed a couple of missing decode methods