Load schema files instead of listing field types

This pull request is for the commit 8e779c1.  Since it was hard to make the commit independent to the pull request #7, this contains the same two commits as #7.