updated histogram extraction to use streams instead of the file system,
also added url to unit test