Update functions.php

Added revisions control (3 revisions max)