Update install script.
Delete unnecessary functions.