Added Auto-install and load library code