histogram updated. other minor edits