Create a BaseModel and move common model functionality to it, enhance to_json to pretty print the json string.
Change examine command to emit the output of to_json instead of inspect