Add mono example and fixe some issues in the library