adds functionality to cd and made function to display current directory.