adds static keyword to funcs
changes to some function prototypes
Adds constness to unmodified pointer arguments
replaces longs and unsigned shorts with correct types
Adds executables and submission to gitignore