Fixed missing export in addMetaData function and moved the HUB-files writing into a seperate function in output.R