Added toJSON(). README clarifications.