Added RStock output file, and cleaned things up a bit.