Minor modifications. Added (simple) flow diagram.