Add docs for shared components
Add error handling