Block rotation/flip fixes and some general changes of no consequence

Closes #241.