Lines from the buffer were incorrectly being removed when the viewport was resized. This change removes the lines when the cursor is above them, if not it shifts the viewport down. Some basic jsdoc comments were added to some Terminal properties for future reference. Fixes #98 Fixes #99