chord little refactor and docstrings