Fixed use of notification name constant.
Fixed some warnings.
Merge pull request #1 from neonichu/master

Small improvements