fixing indexjs
add docs
merged