Cost function tweaks
null init unnecessary