Minor bug fixes and improved error checking

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.
Merge pull request #3 from dixonj30/master

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