adds docs, still not quite working