If you’re not familiar, spray foam is a type of insulation that expands after you spray. The foam expands and seals, avoiding any type of unnecessary moisture (which can create mold) or encouraging pests to eat through your walls. It protects the lining of your house, and even can protect the heating and cooling of your house during those unbearably cold or hot days.
The blowing agent is captured within the cells which contributes to highly efficient insulating properties. In addition, closed-cell foam provides an inherent air barrier with low moisture vapor permeability, and excellent resistance to water. The density for closed-cell spray foam is approximately two pounds per cubic foot. The medium density foam provides sheer and racking strength to wall assemblies in building applications.
The process by which heat energy in the form of light (usually IR unless the substrate is hot enough to glow in the visible range) is emitted more strongly by warm surfaces and absorbed by other materials especially those of low IR reflectivity (think matte black finish). Radiant heat transfer does not require a medium. Foam insulation materials, such as spray foam insulation, are opaque to thermal radiation, like most solid materials.

If you cut the nails holding one of the corner studs to the bottom plate and the top plate with a Sawzall, you can use a flat bar (or a flat bar plus a wrecking bar) to pull the stud off the sheathing nails. Either re-use the stud, or buy a new stud, and install the stud with toenails as shown in the link I provided in Comment #51 (this link: Outside corner detail). 

Where To Buy Foam Spray Insulation

There are two main types of spray foam to consider: open-cell and closed-cell. Open-cell spray foam has a lower R-value per inch and because of this, typically a lower price tag. The soft, low-density material is used for interior applications. Its high permeability allows for moisture to pass through, which contributes to bi-directional drying of the assembly, but it may not be ideal for all applications or climates.  http://www.youtube.com/watch?v=ggLAUsiuI_o
According to the Department of Energy, an estimated 20 to 40 percent of a home’s utility bill could be going to waste from drafts and air leaks around openings. As temperatures cool and energy costs rise, the positive impact of energy efficiency on a building comes into focus. Air can enter and escape a structure through every gap, compromising the building envelope. Adding the right insulation and air-sealing will close these gaps, keeping interior spaces comfortable and reducing energy bills. 
Acrylic coatings are typically applied in two coats, with the second running perpendicular to the first. 1 gallon per 100 square feet is a good estimate for these coatings, as they do not need to be applied nearly as thick as many other coatings. These coatings can be sprayed or roll-applied. Acrylic coatings generally require a re-coat within 2-3 years of application.

Spray Foam Roof Insulation