Add Ctrl+C handler for Windows, add more documentation and a utility macro.