Added PDF version of main code on request