first update
refactored with promises
remove test logging
-speeding up with index
-initial working version