Add comments and improve formatting of the generated solo.rb