Alert Code - Almost everything works.

Things left to do:
1) Finish coding/testing check distance function
2) Validating user inputs
3) Integration with settings page
4) Including email alerting function