Adapt frozen potential and wrapping to 2d / 3d handling

some documentation about what the input variables mean would be nice.  e.g. what is bdim?