made code extraction parameterizable; edited README