Use a xib instead of a nib.
Fix missing declaration of some functions that Interface Builder was complaining about.