added JSON output and minor changes
revisions