Finalising rtools package

Other changes:

- tests
- documentation
- notebooks