added main code and user config
added Makefile