Use perl naming style for functions

Was previously using camel-casing in function names which isn't very
perlish. Updated naming styling to correct this.
Remove prototypes warning

Stop compiler complaining that prototypes have not been specified by
setting prototypes in the XS module.