modified code snippet styles and spacing and such