Updated Javadoc
Added intial tests for tf-idf
Extracted idf to its own method