Update to 5.0.0
Update to new macros
Move documentation to doc subpackage