Removed some no longer functioning code
added some docs