Dynamic File Creation added

Handles and creates files dynamically. Additional buffer removed