Make line_error a member function

Make line_error a member function
Spelling fix

Spelling fix
Fix dprintf warnings

Fix dprintf warnings
Fix warning

Fix warning
Fix warnings

Fix warnings
Use this-> to avoid warnings

Use this-> to avoid warnings
Fix set but not used warnings

Fix set but not used warnings
fix compilation errors