Move handling of points data into new Sequence class
add test for sequence
fix bugs found by sequence unit test