added optional argument to open-shared-library to raise an error with dlerror message
Modified document of open-shared-library to explain how it works internally.