Fix bug in SMILES writing.
Add SMARTS tool