Edited for code formatting and spelling

Added code formatting for intermittent object/method mentions. Fixed a few spelling errors.