Update main.c

Added function pro to-types... should have been done a long time ago.
Merge pull request #3 from knicko/patch-3

Update main.c