Fixed clear function and updated Commands.c

Fixed clear function and updated Commands.c