Added --generate-instances option
Extracted method body generator into separate class.
More tests