1. updated example files
2. fixed process monitoring bug (reference to non existing old variable)
3. Added error printint to puts and not only to email since email sometime is not working