added shuffle function and cleaned up sample files