updated nutch application with additional tests and refactoring codes