Fixes a bug that could happen when #58 will be applied and improves docs.