adddummies function

Add dummy variable to the data.frames, these are needed for errorlocations etc.