Add global lock to SnakeYAML, documentation stub, tests. Small improvements.