Add check for elastic search

The check functions as needed but the error on the word 'index' needs to be ignored, it is generated from the first line of the file and is false
streamline code
Fix header line issue
Add Sensu Plugin class
Remove test files