First official commit

Working under mac os x and linux (must change the main.c file includes
for linux, just comment the lines for mac os and uncomment the lines
for linux)