added error checking for amount of decimals placed in string, removed unnneeded header files and variables