Ported 1baa8f3 from ZXing

Original commit message: "Specify allowed EAN extensions as a hint."
Ported bd4536f from ZXing

Original commit message: "Issue #63 : minor formatting and doc changes"