Refractor, Ensure generate Command

-  Refractor getAttributes,getMethods 
-  Add checkAttributesAndMethods methods in Generator class. 
- kill spaces