Created pfPrepcode function to print (and somethimes wills) prepcode.
Deleted commented printing eachtotal part.
Separated the time outputting parts into a function.
Put freeing part soon after using part.

So, this is it.
Free it immediately if you do not use.