Update readme, fix conditional assignment