Refactor defaults to separate file
Fix #16, generating colours for edge categories