Improving stability of logss model estimation.
Added plotting code and calculation of mean square errors.