changed the main and added the python script for historgrams