add function isNotNil() to detect UIAElementNil
use new isNotNil() in place of old UIAElementNil checks
fix typeString: faster typing, iOS 6/7 compatibility, .clear() function added
Whitespaces fixes (indenting sorely needed).  NO CODE CHANGES