Added documentation
hopefully merged stuff