beta 0.5

correct writing to json in comfortable format