Added support for disabled state

Added support for disabled state including disabled class configuration option.
Code looks well formatted but DONT EVER USE TABS.
Also probably it's not good to format someones code because now its hard to find out who is author with git blame.