rearranged code + added LLE
fixed merge
add figure names and drawnow statements