Added cakefile, and made demo more useful, and added better functions described in README.md