Changed the main concept.

Changed the hook e added __install and __uninstall methods