cd command added. More error reporting.