Technical debt

Reduced technical debt by writing docstrings and refactoring tests to use toBeTrue etc where bootstrap limitations don't make this dangerous (e.g. in tests for fail())