More descriptive error, remove() flag correction in docs