Added beginnings to writer.pl

NOT completed yet will resume when I awaken from my hole.