Added full source for the library

* FULL cpp source
* Some usability fixes