improoved extract.py and updated the readme