added doco
fixed gson parsing with parameterized types