Added a little documentation
Also moved stuff to a lib/ to make it easier to look around
fixed package.json