callback bug

i have added some descriptions of code i made. i also still have a bug,
because of which code doesn’t wait for the done array and runs over
some errors.