added api
added documentation to pages