Add APEX scripts
Removed legacy APEX files
apex modifications