Adds package doc comment, updates func comments