Added routines for writing FOF catalogues.

Should consider normalizing to existing FOF catalogue productions.