Added documentation, added a helper method to fix closure references in php5.3 unserialization