Can now create detail rows

And other minor fixes