Added styles and markup for badges; added reset method; some minor changes.