Completely reworked on fragments are generated. Reduced down to one algorithm for all cases. Added chemicalfromula fragment