Reviewed and extended documentation. Minor code changes.