Updated documentation and minor changes.