Final refactoring and documentation

Combine chord types together so the UI works better moving between the
two types. Function documentation.