clean and improved BC implementation
nvl to binned distribution
removed (my) old code