Use enhanced for
Fix javadoc
Add test
Improve thrown exceptions, document used options in serialized files -- still apparent bug if you try to save list of feature factories so serializing them individually.
Add a new print option. Hope is that this will make it easy for non-skilled people to get out the set of entities from a document