Fixing a few spelling mistakes and making a minor simplification in the RBDS code.