

* many comments added
* braces around (almost?) all single line blocks (if/while/for)
* typedef's, enums used in place of struct's and #define's
* all global variables start with GLO_
* all public functions prototyped in .h files (same base name as the .c files)
* all public function names prepended with the name of their file (network API
	functions prepended with NET_)
* all private functions declared static
* compiles clean with -Wall
* Ran everything through indent -kr
* untabified everything

