Minor text error and debugging added