bool variables are now more powerful.
Added support for enum variable types.