Tweaks

Fixes loop article resetting and a quick file writer.