Written document, fix bugs