Cleaned elf code
refractored output to screen