added code to extract all contents from archive

Still prototype, very ugly code