added doc and code