document updates
updated docs. cleaned out some dead C code