File input and subject organization