Added framework for file generation

Also moved FileLoader to a new package