Added listing file, tempfile stuff

Also removed unnecessary func prototypes
Some testing data...