oapmc + pubmed refactored, more comments and functions put in common
add tools.js