Added comfortable way to generate miltiple files and some error messages