Fixed whitespace tabbing, and cleaned poor spelling
Added asserts, and cleaned header code-block
Expanded variables into human words, and cleaned some minor whitespace.
Created gitignore
Fixed global namespace refs, and uniformed local varnames.