cleaned up some more files and __ finished prec-to-cd code