Fix extra frame being recorded.

Thanks davean!
Add example config file.