changes package structure w.r.t frameworks and add map reduce code