sample and tools moved to lib
fixes
fixed history tool