added better spacing with curly brackets
added returns for curly brackets and space between if else statements