Code review changes

Added code review changes + overloaded function for the new edit text command framework.