fix investigate function, update bashrc complete comments