Ignore byte-compiled files
Fix some checkdoc warnings
Add snippet for function