R groups no longer get the symbol "H". Hydrogens now get their hydrogen
counts set (needed for SMILES output). Tidied code. Formatting changes.