Documentation and improved resize