Errors fixed; Documentation greatly expanded