Edit lib
Moved the file to Debug to avoid duplication
Work with 1 iteration
Added limitation for waiting
added more comments
Added more comments