Fix placement of puts and spacing