add clear commands for main.m