changed renderer to use molecule class and attributes
changed renderer to use molecule