Added plugin_get_name API function

Fixed missing type signatures on top-level bindings.
Removed unused imports.