Fixed input alignment and output scrolling, closes #28