Fixed newlines bug on Windows (now using wb and rb). Open scrolling is... not working smoothly, but works for now.