Changed to Objects versus Arrays

Also renamed some variables and changed the way we count up stats. Added
example for output.