Fixed some issues

Code body works properly but functions can't output and fractions won't reduce.