Done with formatting and debugging.

The only thing that needs done now is the windows specific formatting
needs uncommented and the UNIX commands need to be commented. Other
than that it could use more comments.