added a weighted average function
missed keymap definition for new function
Merge pull request #300 from gjesse/weighted-average

added a weighted average function