fix: Fix type casting and plugin hooks declaration
Update README.md