added README and polished main.c