Organized input file and added cases, fixed minor bugs with random symbol detection and allowing exponentials with leading '.'