updates

test cases, documentation, refactoring (mostly for readability)

bug fixes (that I can remember) :

  * sort out how to get rid of whitespace before signing (although ideally it should not be done during parsing, but during c14n)

  * using assert for critical checks

/Fredrik