first functional version of blogify - writes to a file