added mappings objects
loading defs from json
updated demo