Added warning when cd-ing into a dir that doesnt exist
Fixing git
Made the code nicer