core.addMediaToWork + minor fixes.