Added the res function and beautified the auto construct and auto responsive code.