location: move #location in document to the right place
cookies: cleanup code and add documentation
README: add badges