made some style changes and added gdocs code