Fix #1 bug and added parse cookies

I forgot to change it in the repository