Updated some documentaion and code comments