Added requirements document.
Fixed bug in getln ().

Fixed bug in getln () and modified it to only work for stdin, since there
are other complexities associates with different kinds of streams that are
not handled.