added prototype scan function from sickReader.cpp