adding function handling and arg count checking
adding function and argument # checking