Changed separate b values so it would be able to take in different division factors and other various fixes.