Implemented tooltips and refined error messages.

Also started converting test files.