Added spaces and blank lines

Added some spaces and blank lines in accordance with coding guidelines to improve readability