format code
add scookie
change test demo
add printError to trick Error
fix and new version