added uninstall function to script