Better numbered equation style, many tweaks, improved docs

bup

Many small improvements to code and docs