Fixed functions, structs, and interfaces documentation and some typos