json handling; closes #19
documentation on types
Merge pull request #4 from radekstepan/master

JSON support and better docs