added more description to the calculate new base function
removed an extra step in new base calulations
updated comments and simplified calculate new base