Changed hooks so that ALS hooks come before y_hooks.
Added MASTER_COPY.
Code cleanup.
y_commands v2