Rename tests/Main.hs as tests/tasty.hs
Add doctests
Fix qiModify constructing “qi 1 0 5 1” instead of “qi 1 0 0 1”