leveling_arrays2.0

kinda just fine tuned it a bit no major changes,
made a main function,
fixed a  few comments