Extracted recurrecing code to methods
Completed testing and integration of the Elasicsearch adaptor
made method more verbose in terms of error handling
Added more tests to ensure the correct functionality of the module