Added clear cookie function
Added tests and comments
Fixed pep8 errors and warnings