Refactored staffops file. (Vars and functions renaming)