New feature: dinamic cookies. Also fixed few parts of code.