Split up exclude all
Correctly creates ref and out parameters

Fixes issue #4