updated version of the libraryh3lp code.

I've tested the block on my local, but we need to test in the library
moodle block.