now reads max characters instead of till newline, added makefile, reports unread characters