Added MAkefile and fixed main() proto