Add parse(InputStream) for parsing files