project dir struct changes
getting data from XHR request
dirpaths fetched for convenience
cleaning, new func to get lib list
simplified write to file