- Revised sample and shifted relevant code to the api
- Various fixes and cleanup
- Documented the API and cleaned up the sample
- Cleaned up the sample and toast management