Error printing has correct line numbers, fixed const in main declaration

Resolved #50, #12. Commented out operator spacing for `*`.