add size to nextAlpha
migrate random function
delete PouchDB dependancy
add doc