some work on json and docs
some more work on json
ability to check types
some auth modifications