Adding swapfiles to gitignore, fixing sorting issue wwith daatapoints while reporting last_value