Fixed file processing

It works now! It creates trees!