clear cmd[] for each prompt
add linked list
fix merge conflicts from master

Conflicts:
	shell.c