Updated and extended documentation.