Enhanced installation script and added uninstall and purge functionality. Removed error in minectl's init() function