fix endlife cookie cart
add some phpdoc