now using structure fxn for more compact class, attr assignment, closes #37
removed more rjson mentions, fiddled with a few tests