formatted the code
more formatting
minor changes