Bug fix: getProfile function calculating n(bins y) incorrectly
Removing excess print statements