fix compiler
added makefile
extracted fileformatter for file editing