fixed bug on line 631
removed legacy mode
Removed requirement for typeOf Shim. See comment on line 678
Fixed white spacing
Version 3.0.4.7