Does not come with brackets to attach headboard or footboard.  When you raise both top and bottom it is almost flat, since mattress does not give that much.  The massage feature you can hardly feel (although I do have a 12 inch mattress).  It was easy to set up.