fixed some formatting, updated line references.