add debug symbol to Makefile
ignore sample file
more scanning functions