typeof replaced with toType
added missing %
added check for namespace creation
wrong range check
readme enhanced
readme updated