added functions plot points and gather points for reader file