finished refactoring. wrote unit tests. soon fix offset bug
finished writing tests - should work. test later with better internet