mainActivity cleanup and decimal conversion bug fix