Add analyze class, add cleaning text method, other little optimize