fixed elasticsearch curl requests so they output correctly but alspo catch errors.  added process time control.
fixed json encoding issues and removed the hack method to deal with it.  json encode has options to encode special characters.
added notes and check exception and execution time handling.  good.