Weka Core Implementation

Little test was done and little mistakes were fixed.