Created def's for each test. Needs further adjustment.

Created def's for each check. Need to likely adjust the tabbing for the script to run properly and need to add some elif's for things to work fully.