Changed return type to use enums. Fixes #1.
Added more formats.
Updated README.