Add docs and minimal tests