repaired FileManager and adapted Main