Initial code upload.

Added the actual library.
Also added the dependencies in /lib, and a demo in /demo.