Fix compile errors + add doctests
Add dependency bounds