Resolve #27 Resolve #29. Looking at #28, partially done. Added utils.py.