unfinished code

An attempt on adding extraction support. This code isnt finished, and
will probably not work, comments added in code