Updated the documentation and the library with a few additional tweaks.