Fixed bug in mortality calc. Switched optim to vary logs.