gitignor updated to exclude some useless stuff
`cd` function greatly changed.