Fixed molecule traversal and added some learned functional groups