Fix ALL the errors Valgrind was reporting.

Use-ing now works! (not only under Valgrind)
Plus a few minor changes.