1. Add a small script to check if the geometry optimization is converged.
2. Small bugfix in prevous scripts