Can only post one node at a time now
Added extra error handling around adding and updating nodes
Fixed code style