refactored to smaller functions; made basic test runner; began to make test files