updated documentation and update file sample for FileService JS