fixed minor needle bug, fixed tofrom, added addtional test