file handling and raw matrix table population