gbs.py updated and more comments