added PDT table generation code

also found a minor error and fixed it in bubble_growth