Adding docs, tests