Added build script; added all type conversions
Updated README.md; added some more sanity
Optimized use of undefined with var; fixed output of escaped values