Initial Commit, working email and require function. functions pieces out to make it easier to test and modify.