Add support for disabled state and update.

Merge code from cristiandreica (disabled-enable functions) 
Merge code from riker09 as it is (update function).
Fix disable-enable system.