Refactor pin controller code
Added some documentation
Merge branch 'master' of https://github.com/phoenix367/v2rpins_sdk.git