Implement logging for src/core/
Improved build scripts