fixing histogram boundaries, cosmetic changes
Updating the fitting macro