Code polish

Created $ function to return document.getElementById(id)
Fixed up commenting throughout code - all comments are sentences, and are positioned on the line before they code they refer to.
Changed variable names that were abreviations.
Fixed array iteration style.