I worked through this and everything compiles correctly now! Thanks for your help.
I did wonder about the linter in Atom. From what I have read there seems to be an issue with linters working with .ino files in Atom. Have you guys found anything that works?