Updated write mode

Changed so when you write the linked list you can either append or
rewrite