ReportNG support added; in case of Selenium test failure, screenshot will be taken and attached to the ReportNG; also some refactoring performed.