Merge pull request #128 from ddobrev/master

Added a pass to move functions to an appropriate existing class if possible
Added the option to have attributes generated.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>