Add docs

Changed and added a few comments