Changed to accept generic object types (instead of specific CPoint type)
Fixed compiler warnings.
Reacting to previous changes