prototype structure for fitting function

Relates to #217. I don't know if this is the right structure, seems kind of ok to me. 

I'm working on a beta distribution fit, since I definitely need that for my own nefarious purposes.