clean up main, add proper GetDatapoints