separating test and core code
making look_down slightly faster
sketched scorec-like tag impl
copyright in test.c
using int instead of long, saves time and mem, good enough for most cases