cleaned up sample ad/topic generation (fixed bugs, cleaner json generation). added topics mining core