added comment about wait()
added tests and documentation for volatile collections