puts files into gem structure