Add working example to README.md

- fix module declarations inside hal.rs
- add detailed examples to README.md