javadoc added, randome and uncertainty sampling finished