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.