added rough histogram plotting capability