Standardized spacing on figures and moved some of them around.
Corrected listing configuration.

Added spacing before and after.
Moved caption to top.
Added list of listings.
Changed name of list of listings.