imolecule updates

Updates over the last couple of months. Mostly mirroring three.js updates.