Add library to initial commit.

Also included sample app for the library.