Added case-insensitivity to commands, and a few other places.