added purge script
refactoring errors
upgrade the server
a better documentation