I'd also like to mention that the piece can have a brief coda that steps out of the variation format. I feel like that question may arise at some point so I thought I'd answer that now. Cheers.
You can augment or contract the theme, that is definitely okay. There are essentially only two things that are mandatory, the theme can not have repeated sections and it needs to be under 15 minutes.