Added main and make file
Added some comments and changed a literal value to a define