Added powerloss event
Merge pull request #6 from DVassilev/patch-6

Added powerloss event