Zero Rows

new objective function, new demo and now is robust to null rows