documentation added and centralized priority variables into ScriptBase