Improve the C code organization
Issue #40
new
- The R and Python C interface code should be moved to their separate subdirectories
-
File sizes in general are too large and should be broken up
- for example, functions for printing/logging could be moved out into separate files
-
Some larger functions should be broken up
- this is particularly bad among functions with internal state machines