Changed some paths, jsdoc and loops