Cleaned up code to compile with "gcc -Wall -ansi"