made lib more node-friendly (I think) and added min version