Clear model button; bug fixes:

- build docs on Windows
- toggle primary/secondary working again