Updated Spacing and layout of code

Updated Spacing and layout of code