convert int fields to int when getting values from config
Retrieve purge after and max age fields as integer from config
fix type and update default value for max_age argument