Added the selftest function prototype
Added selftest implementation for 'bool' parameters
Added selftest enum support
First working selftest version