Implement resizing
Fix line endings