Moved tree file handling to AudioTree class, fix small bugs in file getting process.