Cleanup: trim trailing space, docstrings + examples, remove todos