tweak log sqrt -> 1./2 log
add diagonal gaussian demo