Wrote the core checking loop

Core of program complete, just need to refactor it into a daemon and maybe add a few more options.