added scan1 + tests

Closes #9