added confidence scores. minor style changes