API to get file data. Closes #7