More bug fixes and error checking. Slight re-organization. Better comments.

Added a bit more error checking, and made the error messages more clear
for the user by starting the line number at 1 instead of 0.
More comment updates.
Fixed some minor bug with requiring an accompanying Else to every If.