Added activation/deactivation events. Fixed bugs.
Error handling in name function.