clean up main.c, move shell to shell_cmds.c
add cmp memory access module