extractor.cpp refactored a bit

I've split extractor.cpp code to methods and organized them in class.
add blank line to separate lib includes, C includes and stl includes