enhanced content translator to support block sizes greater than 1 and added event driven api to the generator