make derivatives work with compound input, add main functions to several modules, add error handling for maths_py
add scientific formatting for large output in subtriangles module