chmod() and inotify_add_watch() functions wrapped

Hello Martin

Could you take a look on this request?

If you have any suggestion on how to improve or fix something in the code of this request I will be happy to change it.

Thanks