fix grammar in javadoc
[Issue #4] introduce file type and extension handling code
[Issue #2] smart file type detection for factories