divide.py polishing and improving

Made a new idea for the program's function in finding the folders and
used folders and using them better.
small changes before the big ones

There was an attempt to create a more logical follow up of the folder
getter after all folders were exhausted, but it ended in a failure,
seeing how it was a rather complex proceedure that would have required
more than there was time, so instead it will be considered again when
all of the more complex parts are broken down, if there is time.
Breaking to smaller pieces

Making functions that tell functionality.