added some very basic view stuff and JSON output for issue #2