Added support for molecules. Calculation is still not accurate, some bugs remaining.