added globals and changed return and parameter types

Added the enums in globals.h. Direction is no longer an int, it's an
elevatorDirection.