Refactored code, corrected stretching, changed formatting.