Re-introduced old print function, re-worked for loops so that they can compile using bcc32, re-included variable names in function prototypes at beginning of file