Modified carrot and horse script and minor formatting