Changes in main.c and sm_macro.c

Lacks implementation of queue, queuese and queue function.