Adjusted precision length to prevent string overflow
added clearing unit strings at reset to prevent strcat causing string
overflow