merged julius.cpp and main.cpp