Update readme and add code

The code is not yet optimized and is missing some features including
arrays. Also, ref and object keys should be prefixed with something,
really.