Corrected syntax and asthetic feel in code