Changed some stuff to make it work on Mac, also fixed so echo works better and cd is pretty much working.