Added in line numbers in parser error and fix couple errors.

Added in line numbers in parser error and fix couple compilation errors.