removed __main__ code from molecule.py