Implemented and tested recursive compilation
Fixed logging to output the things.