Added tab completion, history, and fixed an OSX error