Json schema

Closes #5 #3