Removed old code and added some doc.