added routes and docs for functional testing