Merge pull request #235 from DRMacIver/prototypes

some functions were missing proper prototypes
set the data for the nomem handler