Fixed valac warnings.

Warnings included unhandled exceptions and private classes with unused methods. (Changed to public classes).