updated the library with some basic API. Still a work in progress.