basic file extraction implemented and working \o/
implemented basic file extraction.