started work on an updatePosts function for #20
Closes #20