Made update optionally recursive

For #43.