added basic point picking code.