Added the main loop

Added the main loop for the my journal