Adding getnextline functionality
Improving Makefile