added structure, steps to main
added log modes