Issue130 poly fit

This merge allows polynomail basis to not be required to have the local state variable sum to 1.