Fixed typos, finished format val
Added json serializer