Added ability to cd and fixed resulting bugs..