Added flag to pendingintent
Changed version
Corrected naming of the preferece