added extract function
really improved and focused on git

read new comments in head and bottom of the file ;)
update readme