fix language detection null pointer exception by closing the detector at the end of each process, durring languageDetection and documentParser
Fix #6 add test for the two fucntionalities of document parser;get features from doc and assign semantics to given doc