Added reset function to text module api