first draft of clean code
clean code runs successfully
fixed file naming of outputfiles for byAdmit and byAttend