Fixed main, added do_cd, cleaned a couple things up