Add comment for function addPoint