Documented all the functions in extractpoints.py