greatly shortened exit, fixed some bugs with multiple spaces and cd