Added doc for delete, also fixed a bug in delete

Previously delete could not find the correct table if is.temp is true.