adds make file
corrects bugs