Implementing "cd" functionality

and location history