Relocate add_filter call to within constructor method

The position of the add_filter call produces PHP Notices on the Plugins page.
Merge pull request #48 from punkshui/patch-1

Relocate add_filter call to within constructor method