File parser and API