index.js and lib added