reworded comments
simplified the matching algorithm
that line is not need in new algorithm
added pick_to_flat