fix readme, move stuff to /lib