updateRecord, better docs
fixed tests