Cleaned up code, renamed variables, added comments. Switched over all existing text boxes to new code