better error reporting on select failures; enforce limit on data points to plot; remove testing function