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.