Updated FileManager class and cleaned manager.tpl