breaking up c file
recoding attribute comparison for clarity (WIP)
fixing compile errors
doc tweaks