cleaned up mle_fit script