Introduce check_file_extension flag
Add tests for file extension check
pass original filename (with readme update)
issue #7 merged.