adding loopFrom median and readme updates