Various minor errors fixed, as found by test cases
All POD errors solved