added doc and removed some outdated stuff