use constant references for some parameters
Merge pull request #29 from ralphtheninja/master

use constant references for some parameters