Added test out files
Added very basic extraction function