add some comments and fixes for remove of file.js