Fixed issues with code including indentation, and spacing