added dependencies pre-install script
added library functions with install function, updated pre-install script with it