entities fixed

improved and fixed the class structure to accomodate storage of codes
for each sentence