add check for proper command syntax. add basic functions