Refactored Excel file parser