Improved exceptions and reporting exceptions for command-line compiler.

use endl instead of "\n". 
%s/\n/endl/g