Refactored main and added options.

Option for generating single entity + option for version number.
Updated README and distribution.