pomf: Add support for multiple files and at least some error handling.