Add comments for copy
Remove *.gpi from documented sources
Document alloc
Add comment for io
Change len from int to size_t in io