optimization and added install.sh file.