fixed bugs. added new shell commands, including open, read, write