Experimental fitBMA file

My work bugged up the original, so I'm going to work on it in this
separate file. When it works, I will resave it as the main function.