Update authorship
Add examples/generic.hs
Fix some warnings