Fixes #48. validation: docu and cleanup.