small code tightening
copyright and license info added.
R script added for importing from json.
TODO: analysis and graphing utilities