added makefile and updated getting input filestream