clean up deps
only retrieving oldest timestamp
add localStorage method
add tests