adding new header file and fixing a few things throughout.
Updated Makefile to include check_input.
The basic functionality is working.