Added pfam write and (stub) read function