Merge pull request #288 from ddobrev/master

Fixed the generation of code in a single file
Set the original function of each overload generated because of default values of arguments.

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