added artie's functions
moved 2 variables to globals.ino
added to main