Updated function prototypes to functions

The function prototypes are still in there, but commented out.  The arguments for the functions should now be their array equivalents (args[0], args[1]...), though there are some functions that I found a little iffy, which are commented appropriately.
Merge pull request #1 from hmm633/master

Updated function prototypes to functions