Remove extra paremeter in fitted phase function. Remove transpose of vectors and make the beta0s column vectors