refactoring
added makefile for build