Fix ls command bug and remove some useless comments