Makefile with gnu99
Code clean up
Added documentation to functions.