re organized code to eliminate hoisting
added an optional z-index parameter for drawable components
integrated components
improved param checking