created header files and started coping some functions from scanner