add function to write out bullet pattern groups
unfinished, doesn't work yet.'