Added append text feature. Fixed bugs.