Restrict public classes and methods to a bare minimum. This fixes #19.