update

Added: function prototypes where needed
ADDED: includes where needed
Fixed: perror to printf where needed
FIXED: makefile
FIXED: other compile time errors